using System.Threading.Tasks;
using JlPay.Sdk.Core;
using JlPay.Sdk.Models.Trans.Mini.Wx;

namespace JlPay.Sdk.Services.Trans.Mini.Wx
{
    /// <summary>
    /// 微信授权绑定服务
    /// </summary>
    public class AuthBindService : BaseService
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="config">配置对象</param>
        public AuthBindService(Config config) : base(config)
        {
        }

        /// <summary>
        /// 微信授权绑定接口
        /// </summary>
        /// <param name="request">微信授权绑定请求</param>
        /// <returns>微信授权绑定响应</returns>
        public async Task<AuthBindResponse> AuthBindAsync(AuthBindRequest request)
        {
            return await PostAsync<AuthBindRequest, AuthBindResponse>(request, AuthBindRequest.API_URL);
        }
    }
} 